import http from "@/utils/request";
import {url} from "@/services/Agents/index";

export async function getWithdrawals(): Promise<API.Result> {
    /** 获取订单列表 */
    return http.get(`${url}/withdrawals`);
}

export async function agentWithdrawals(amount: string): Promise<API.Result> {
    /** 获取订单列表 */
    return http.post(`${url}/withdrawals`, {amount});
}